<?php

class TipoEscuelasController extends AppController {

    public $sl_tipos = array(
        "actions" => array("V" => "view", "E" => "edit", "D" => "delete"),
        "filters" => array(
            array("name" => 'TipoEscuela.nombre', "label" => 'Nombre')
        ),
        "columns" => array(
            array("name" => 'TipoEscuela.nombre', "label" => 'Nombre')
        )
    );
    public $maint_tipos = array(
        "fields" => array(
            "Descripción del Botón" =>
            array(
                array('name' => 'fecha_carga', 'label' => 'Fecha Carga', 'presentation' => 'DATETIME', 'classparams' => '{"force":true}', 'isvisible' => false, 'actions' => 'A'),
                array('name' => 'nombre', 'label' => 'Nombre')
            )
        )
    );

    public function add() {
        $this->maint = $this->maint_tipos;
        parent::add();
    }

    public function edit($id = null) {
        $this->maint = $this->maint_tipos;
        parent::edit($id);
    }

    public function index() {
        $this->search_list = $this->sl_tipos;
        parent::index();
    }

    public function view($id = null) {
        $this->maint = $this->maint_tipos;
        parent::view($id);
    }

}